package com.bzframework.pro.example.controller;

import com.bzframework.pro.authorize.adapter.ReactiveServiceCrudControllerAdapter;
import com.bzframework.pro.example.entity.TreeEntity;
import com.bzframework.pro.example.service.TreeService;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import org.hswebframework.web.crud.service.ReactiveTreeSortEntityService;
import org.hswebframework.web.crud.web.reactive.ReactiveTreeServiceQueryController;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author bingzhong
 * @Date 2024/11/20 17:09
 * @Description
 */
@Tag(name = "树形结构")
@RestController
@RequestMapping("/tree")
@RequiredArgsConstructor
public class TreeController implements ReactiveServiceCrudControllerAdapter<TreeEntity, String>,
        ReactiveTreeServiceQueryController<TreeEntity, String> {

    private final TreeService treeService;

    @Override
    public ReactiveTreeSortEntityService<TreeEntity, String> getService() {
        return treeService;
    }


}
